//DO NOT MODIFY THIS PATCH WAS MADE FOR ULTIMATE USERBAR//
//IT FIXES THE BINARY BUG, DO NOT MODIFY YOU CAN CORRUPT//
//THE GAME, IF THE GAME GIVES AN ERROR , DELETE THIS    //
//FILE AND DOWNLOAD IT AGAIN, PATCH MADE ON  18APRIL06  //
//DO NOT MODIFY, NO REALLY DON'T. MADE FOR        v1,1,5//

object_event_clear(obj_export,ev_mouse,ev_left_press)
object_event_add(obj_export,ev_mouse,ev_left_press,"

screen_redraw()

path=get_save_filename('Bitmap image|*.bmp',working_directory)
d=1;

if string_length(path)>0
{

if file_exists(path)
    d=show_question('This file already exists. Do you want to overwrite it?');
    
if d=1
{
if global.dllpresent=1
    {
        screen_save_part(path,obj_userbar.x,obj_userbar.y,350,19);
        
   gc_bmptopng(path,path+'.png')
   
   bin=file_bin_open(path+'.png',1)
size=file_bin_size(bin)
file_bin_seek(bin,size)
file_bin_write_byte(bin,19)
file_bin_write_byte(bin,91)
file_bin_close(bin)

    file_delete(path)
}
else
{
    screen_save_part(path+'.bmp',obj_userbar.x,obj_userbar.y,350,19);
    
            bin=file_bin_open(path+'.bmp',1)
        size=file_bin_size(bin)
        file_bin_seek(bin,size)
        file_bin_write_byte(bin,19)
        file_bin_write_byte(bin,91)
            file_bin_close(bin)
}}}
else
 show_message('You did not enter a valid name/dictionary. Please try saving again');

if instance_exists(zoomobject)
    zoomobject.visible=1; ")

room_caption='Ultimate Userbar v 1.1.5A +patch, By BrainWare , Press f1 for help!'